package com.tsmti.system.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * @Package：com.tsmti.system.entity
 * @Class：DataDictionaryGroup
 * @Description： TODO
 * @Author：zcw
 * @Date：Created in 2018/5/16 16:52
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "pims_dictionary_group")
@DynamicUpdate
@DynamicInsert
@Where(clause = "delFlag = 0")
public class DataDictionaryGroup extends BaseDataEntity<Long> {
    private Long id;
    private String code;
    private String name;
    private String remarks;

    @Override
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE,generator = "SEQ_DICTIONARY_GROUP")
    @SequenceGenerator(name = "SEQ_DICTIONARY_GROUP", sequenceName = "DICTIONARYGROUP_SEQUENCE", allocationSize=1)
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
